package com.google.code.syncgear.plugin.bean;

import java.io.Serializable;
import java.util.Date;

public final class FetchResult implements Serializable, Comparable<FetchResult> {

	private static final long serialVersionUID = -8225326082837608724L;
	
	private String title;
	
	private String description;
	
	private String image;
	
	private String link;

	private String author;
	
	private Date pubDate;
	
	private String tags;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Date getPubDate() {
		return pubDate;
	}

	public void setPubDate(Date pubDate) {
		this.pubDate = pubDate;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	@Override
	public int compareTo(FetchResult fetchResult) {
		return this.getPubDate().compareTo(fetchResult.getPubDate());
	}

}
